class HttpExceptions extends Error {
    constructor(msg = '请求错误',errorCode = 20000,statusCode = 404,errors = false) {
        super()
        this.errorCode = errorCode;
        this.msg = msg;
        this.statusCode = statusCode;
		if(errors) this.errors = errors;
    }
}

module.exports = { HttpExceptions };